package com.turing.draw.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @Description
 * @Author livin
 * @Date 2021-11-10
 */
@ApiModel(value = "OcrPageTask")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class OcrPageTask extends BaseDo<OcrPageTask> {

    @TableId(value = "ocr_page_task_sn", type = IdType.UUID)
    private String ocrPageTaskSn;

    @TableField("parent_task_sn")
    private String parentTaskSn;

    @TableField("task_sn")
    private String taskSn;

    @TableField("ocr_page_task_status")
    private Integer ocrPageTaskStatus;

    @TableField("template_id")
    private String templateId;

    @TableField("template_group")
    private Integer templateGroup;

    @TableField("page_no")
    private Integer pageNo;

    @TableField("image_url")
    private String imageUrl;

    @TableField("ocr_json_url")
    private String ocrJsonUrl;

    @TableField("domain")
    private String domain;

    @TableField("warning_time")
    private LocalDateTime warningTime;

    @TableField("retry_count")
    private Integer retryCount;

    @TableField("single_page")
    private Integer singlePage;

    @Override
    protected Serializable pkVal() {
        return this.ocrPageTaskSn;
    }

}

